﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AgileSaude.Entities;
using AgileSaude.Business.Validation;
using AgileSaude.Data.Repository;
using AgileSaude.Data;
using FBS.Framework;
using AgileSaude.Business.Process;

namespace AgileSaude.Business
{
    public class TipoServicoFacade
    {
        public List<TiposervicoEntities> Listar(TiposervicoEntities pFiltro, ref Resultado resultado)
        {
            return new TipoServicoProcess().Listar(pFiltro, ref resultado);
        }

        public TiposervicoEntities GetTipoServico(int pIdTipoServico)
        {
            return new TipoServicoProcess().GetTipoServico(pIdTipoServico);
        }

        public TiposervicoEntities GetTipoServico(string pNome)
        {
            return new TipoServicoProcess().GetTipoServico(pNome);
        }

        public Resultado Incluir(TiposervicoEntities pUsr)
        {
            return new TipoServicoProcess().Incluir(pUsr);
        }

        public Resultado Alterar(TiposervicoEntities pUsr)
        {
            return new TipoServicoProcess().Alterar(pUsr);
        }
    }
}
